package com.example.module_home;

import android.content.Context;

/**
 * @author yaotianxue
 * @description
 * @date 2025/2/27
 */
public class Single {
    private Context context;
    private Single(Context context){
        this.context = context;
    }
    private static Single single;
    public static Single getInstance(Context context){
        if (single == null){
            synchronized (Single.class){
                if (single == null){
                    single = new Single(context);
                }
            }
        }
        return single;
    }
}
